#include <stdio.h>
#include <unistd.h>

#include "base/simapi.h"

void mainX(int argc, const char** const argv, const char **envp) {
    goto_real();
    printf("in real, running native!\n");
    goto_sim();
    Sim_Print0("back in simulation!\n");
    goto_real();
    printf("back in real, lets see if atexit handler works to trap exit()...\n");
}
